/**
 * 2018年11月27日下午1:34:30
 * @author 谢进财
 */
package com.baihang.project.ds.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baihang.framework.controller.BaseController;
import com.baihang.project.ds.service.OnLineService;

/**
 * 在线统计
 *
 */
@Controller
@RequestMapping("/online")
public class OnLineController extends BaseController {
	@Autowired
	private OnLineService service;
	
	@RequestMapping
	public String index() {
		
		
		return "/project/ds/online/index";
	}
	
	@RequestMapping(value ="/getOnLineInfo", produces="application/json;charset=UTF-8")
	@ResponseBody
	public String getOnLineInfo() throws Exception {
		
		return service.getOnLineInfo();
	}
}
